.node-editor {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  overflow: hidden;
  /* 防止内容溢出 */
}

.canvas-container {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
  /* 优化变换性能 */
}

.context-menu {
  position: absolute;
  background: #2d3748;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 4px 0;
}

.menu-item {
  padding: 8px 16px;
  color: white;
  cursor: pointer;
}

.menu-item:hover {
  background: #4a5568;
}

/* 保存按钮容器 */
.save-button-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.save-button {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.save-button:hover {
  background-color: #45a049;
}

/* 缩放控制组 */
.zoom-control-container {
  position: absolute;
  top: 20px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 55, 72, 0.9);
  padding: 8px;
  border-radius: 4px;
  z-index: 100;
}

.zoom-button {
  padding: 6px 12px;
  background-color: #4a5568;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}

.zoom-button:hover {
  background-color: #2d3748;
}

.zoom-display {
  color: white;
  font-size: 12px;
  min-width: 48px;
  text-align: center;
}